package org.osomit.sacct.entity;

import org.json.simple.JSONObject;

/**
 * @author Jian Fang (John.Jian.Fang@gmail.com)
 *
 * Date: Jul 2, 2009
 */
public class SecureRequest extends Entity {
    private static final long serialVersionUID = 5268864539047405306L;
    
    public final static String ENTITY_NAME = "SecureRequest";

    public static final String SESSION_ID = "sessionId";
    private String sessionId;

    public static final String REQUEST = "request";
    private String request;

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public String getRequest() {
        return request;
    }

    public void setRequest(String request) {
        this.request = request;
    }

    public JSONObject toJSON() {
        JSONObject obj = new JSONObject();
        obj.put(SESSION_ID, this.sessionId);
        obj.put(REQUEST, this.request);

        return obj;
    }
}
